package cn.rocksolid.sport.agency.service.impl;

import cn.rocksolid.sport.agency.dao.SmtpSettingDao;
import cn.rocksolid.sport.agency.entity.SmtpSettingEntity;
import cn.rocksolid.sport.agency.service.SmtpSettingService;
import cn.rocksolid.sport.common.C;
import cn.rocksolid.sport.common.utils.QwUtils;
import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

@Service
public class SmtpSettingServiceImpl extends ServiceImpl<SmtpSettingDao, SmtpSettingEntity> implements
        SmtpSettingService {

  public IPage<SmtpSettingEntity> paging(final IPage<SmtpSettingEntity> page, final JSONObject cond) {
    return this.page(page, QwUtils.fuzzy(cond, C.SENDER.f, C.EMAIL.f, C.HOST.f, C.USERNAME.f));
  }
}
